package com.qdsg.modulesihealsdk.entity;

import com.siheal.entitys.measure.BloodPressureEntity;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2022/12/9 17:41
 */
public class BpResultEntity extends BaseMeasureEntity {
    private BloodPressureEntity bpEntity;

    public BpResultEntity(BloodPressureEntity bpEntity){
        this.bpEntity = bpEntity;
    }

    public BloodPressureEntity getBpEntity() {
        return bpEntity;
    }

    public void setBpEntity(BloodPressureEntity bpEntity) {
        this.bpEntity = bpEntity;
    }

    @Override
    public String getDetectResult(){

        if (bpEntity == null){
            return "";
        }
        //收缩压|舒张压
        return bpEntity.getShrinkage() +"|"+ bpEntity.getDiastolic() +"|"+ bpEntity.getPulse();
    }
}
